package com.yuanfengerp.IncomeItem.dao;


import com.yuanfengerp.IncomeItem.entity.IncomeItemInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface IncomeItemInfoMapper {
    int deleteByPrimaryKey(String income_ID);
    int insertIncomeItemInfo(IncomeItemInfo incomeItemInfo);
    List<IncomeItemInfo> selectAllIncomeItemInfo(@Param("pageSize")Integer pageSize, @Param("pageNum")Integer pageNum);
    List<IncomeItemInfo> selectIncomeItemInfo(@RequestBody Map<String, Object> params);
    int updateIncomeItemInfo(IncomeItemInfo incomeItemInfo);
    IncomeItemInfo selectIncomeItemInfoById(String Income_ID);
    Integer getTotalCount();
    Integer getTotalCountINS(@Param("income_ID")String income_ID,@Param("income_name") String income_name, @Param("income_state") Integer income_state);

}
